import { Component } from '@angular/core';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzIconModule } from 'ng-zorro-antd/icon';

@Component({
  selector: 'app-button-loading',
  standalone: true,
  imports: [NzButtonModule, NzIconModule],
  templateUrl: './button-loading.component.html',
  styleUrl: './button-loading.component.less',
})
export class ButtonLoadingComponent {
  loading1 = false;
  loading2 = false;

  load1() {
    this.loading1 = true;
    setTimeout(() => {
      this.loading1 = false;
    }, 2000);
  }

  load2() {
    this.loading2 = true;
    setTimeout(() => {
      this.loading2 = false;
    }, 2000);
  }
}
